package com.cwvs.services;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cwvs.dao.AppStoreDao;
import com.cwvs.utils.Pages;

/**
 * 店铺相关SERVICE
 * 
 */
@Service
public class AppStoreService {

	@Resource
	private AppStoreDao appStoreDao;
	/**
	 * 店铺列表
	 * 
	 * @return
	 */
	public List<Map<String, Object>> storeList(String proviceId, String cityId,
			String countyId, String streetId,String  type,String outType) {
		return appStoreDao.storeList(proviceId, cityId, countyId, streetId,type,outType);
	}
	/**
	 * 通过ID获取店铺信息
	 * @param id
	 * @return
	 */
	public Map<String,Object> getStoreInfoById(String id){
		return appStoreDao.getStoreInfoById(id);
	}
	
	/**
	 * 获取外卖类型列表
	 */
	public List<Map<String,Object>> outTypeList(){
		return appStoreDao.outTypeList();
	}
	/**
	 * 店铺列表
	 * 
	 * @return
	 */
	public Pages storeList(Map<String,Object> m,Pages page) {
		return appStoreDao.storeList(m, page);
	}
	/**
	 * 保存或者修改店铺医院
	 */
	public boolean saveOrUpdate(Map<String,Object> o){
		return appStoreDao.saveOrUpdate(o);
	}
}
